package aplicacion;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

public class AccionCerrarPrograma implements ActionListener{

	@Override
	public void actionPerformed(ActionEvent arg0) {
		
		Frame[] frames = JFrame.getFrames();
		for(int i=0;i<frames.length;i++){
			frames[i].dispose();
			
		}
		
	}

}
